<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>index</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <script type="text/javascript" src="/js/jquery-latest.js"></script>
    <script type="text/javascript" src="/js/layer/layer.js"></script>
    <script type="text/javascript" src="/js/vue.min.js"></script>
    <script type="text/javascript" src="http://static.guduomedia.com/laydate/laydate.js"></script>
    <link rel="stylesheet" media="all" href="http://static.guduomedia.com/laydate/theme/default/laydate.css"  />
</head>
<body>
<div>
<!--    <input type="text" readonly  id="test1">-->
    <button onclick="setMyCoo()">set</button>
    <button onclick="getMyCoo()">get</button>

</div>
<iframe id="myf" src="http://ttt.com:8833/"></iframe>

</body>
</html>
<script>

    laydate.render({
        elem: '#test1'
    });

    function setMyCoo() {
        document.cookie="name=凌晨";
        document.cookie="name2=凌晨1";
    }

    function getMyCoo(){
        alert(document.getElementById('myf').contentWindow.document.cookie)
    }

</script>

